
#include "gtest/gtest.h"
#include "mockcpp/mockcpp.hpp"

#include "pub.h"
#include <iostream>
#include <stdio.h>
#include <stdbool.h>
#include "leetcode.h"

// setuptestcase fixture
// setup everycase

extern "C"
{
}

class LeetcodeTest : public ::testing::Test
{
protected:
    virtual void SetUp() { std::cout << "setup executor" << std::endl; }
    virtual void TearDown()
    {
        std::cout << "teardown executor" << std::endl;
        GlobalMockObject::verify();
    }
    static void SetUpTestCase() { std::cout << "setup by case" << std::endl; }
    static void TearDownTestCase()
    {
        std::cout << "teardown by case" << std::endl;
    }
};

TEST_F(LeetcodeTest, LeetcodeTest_Test0633_Test)
{
    int input;
    bool actual;
    bool expect;

    input = 5;
    expect = true;
    ASSERT_EQ(judgeSquareSum(input), expect);

    input = 3;
    expect = false;
    ASSERT_EQ(judgeSquareSum(input), expect);
}

// 0680
bool validPalindrome(char *s)
{
    return false;
}

TEST_F(LeetcodeTest, LeetcodeTest_Test0680_Test)
{
    char *input;
    bool actual;
    bool expect;

    input = "hello";
    expect = false;
    ASSERT_EQ(validPalindrome(input), expect);
}